<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<?xml version="1.0"?>
<?php
error_reporting(0);
ini_set('display_errors', FALSE);
require_once './config/config.php';
require_once './model/blog.php';
require_once './model/partners.php';
require_once './model/products.php';
require_once './model/myfunctions.php';
$fc= new MyFunctions();
$id=  isset($_GET['id'])?$_GET['id']:'';
if($_GET['type']=="pn")
{
    $obj_partner= new Partners();
    $detail=$obj_partner->get_row_by_id($id);
}
else if ($_GET['type']=="p") {
    $obj_product= new Products();
    $detail=$obj_product->get_row_by_id($id);
}
else if($_GET['type']=="b")
{
    $obj_blog= new Blog();
    $detail=$obj_blog->get_row_by_id($id);
}
$detail?'':$fc->redirectTo404();
?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head><meta http-equiv="content-type" content="text/html; charset=utf-8"><meta http-equiv="content-language" content="en"><meta name="robots" content="all,follow"><meta name="author" lang="en" content="All: Your name [www.url.com]; e-mail: info@url.com"><meta name="copyright" lang="en" content="Webdesign: Nuvio [www.nuvio.cz]; e-mail: ahoj@nuvio.cz"><meta name="description" content="..."><meta name="keywords" content="..."><link rel="stylesheet" media="screen,projection" type="text/css" href="<?php echo PATH_CSS;?>reset.css"><link rel="stylesheet" media="screen,projection" type="text/css" href="<?php echo PATH_CSS;?>main.css"><!--[if lte IE 6]><link rel="stylesheet" type="text/css" href="<?php echo PATH_CSS;?>main-msie.css" /><![endif]--><link rel="stylesheet" media="screen,projection" type="text/css" href="<?php echo PATH_CSS;?>style.css"><link rel="stylesheet" media="print" type="text/css" href="<?php echo PATH_CSS;?>print.css"><title>Impress</title></head><body>

<div id="main">

    <!-- Header -->
    <?php require_once'./header.php'; ?> <!-- /header -->
    
    <!-- Tray -->
    <?php require_once'./tray.php'; ?><!-- /tray -->

    <!-- Promo -->
    
     <!-- /col -->
    <div id="col-bottom"></div>
    
    <hr class="noscreen"><!-- 3 columns -->
     <!-- /cols3 -->
    

    <!-- 2 columns -->
    
     <!-- /cols2 -->
    

    <!-- 2 columns -->
    <div id="cols2-top"></div>
    <div id="cols2" class="box">
    
        <!-- Blog -->
        <div id="col-left">
<div id="description">

            <h2 id="title"><?php echo $detail['name'];?></h2>
            
            <?php echo $detail['description'];?>
            
            

        </div></div> <!-- /col-left -->

        <hr class="noscreen"><!-- Testimonials -->
            <?php require_once'./testimonials.php'; ?> <!-- /col-right -->
    
    </div> <!-- /cols2 -->
    <div id="cols2-bottom"></div>
    
    
    
    <hr class="noscreen"><!-- Footer -->
        <?php require_once'./footer.php'; ?>
        <!-- /footer -->

</div> <!-- /main -->


<style>.tb_button {padding:1px;cursor:pointer;border-right: 1px solid #8b8b8b;border-left: 1px solid #FFF;border-bottom: 1px solid #fff;}.tb_button.hover {borer:2px outset #def; background-color: #f8f8f8 !important;}.ws_toolbar {z-index:100000} .ws_toolbar .ws_tb_btn {cursor:pointer;border:1px solid #555;padding:3px}   .tb_highlight{background-color:yellow} .tb_hide {visibility:hidden} .ws_toolbar img {padding:2px;margin:0px}</style><style>.tb_button {padding:1px;cursor:pointer;border-right: 1px solid #8b8b8b;border-left: 1px solid #FFF;border-bottom: 1px solid #fff;}.tb_button.hover {borer:2px outset #def; background-color: #f8f8f8 !important;}.ws_toolbar {z-index:100000} .ws_toolbar .ws_tb_btn {cursor:pointer;border:1px solid #555;padding:3px}   .tb_highlight{background-color:yellow} .tb_hide {visibility:hidden} .ws_toolbar img {padding:2px;margin:0px}</style></body></html>